﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections.Specialized;

namespace MacomberMapSystem.Common.Internals
{
    /// <summary>
    /// This class provides a string collection that supports instantiation by enumerable cases (e.g., lists)
    /// </summary>
    public class MM_String_Collection: StringCollection
    {
        #region Initialization
        /// <summary>
        /// Initialize a new string collection
        /// </summary>
        public MM_String_Collection()
            : base()
        {
        }

        /// <summary>
        /// Initialize a new string collection with values
        /// </summary>
        public MM_String_Collection(IEnumerable<String> Strings)
            : base()
        {
            foreach (String str in Strings)
                Add(str);        
        }
        #endregion

        /// <summary>
        /// Report the name of the string collection
        /// </summary>
        /// <returns></returns>
        public override string ToString()
        {
            return base.ToString();
        }
    }
}
